package com.sdjzu.xgk2022.entity;

public class University {
    private Long universityId;
    private String universityName;
    private String city;

    public University(Long universityId, String universityName, String city) {
        this.universityId = universityId;
        this.universityName = universityName;
        this.city = city;
    }

    public University() {
    }

    public Long getUniversityId() {
        return universityId;
    }

    public void setUniversityId(Long universityId) {
        this.universityId = universityId;
    }

    public String getUniversityName() {
        return universityName;
    }

    public void setUniversityName(String universityName) {
        this.universityName = universityName;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Override
    public String toString() {
        return "University{" +
                "universityId=" + universityId +
                ", universityName='" + universityName + '\'' +
                ", city='" + city + '\'' +
                '}';
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof University)) return false;
        final University other = (University) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$universityId = this.getUniversityId();
        final Object other$universityId = other.getUniversityId();
        if (this$universityId == null ? other$universityId != null : !this$universityId.equals(other$universityId))
            return false;
        final Object this$universityName = this.getUniversityName();
        final Object other$universityName = other.getUniversityName();
        if (this$universityName == null ? other$universityName != null : !this$universityName.equals(other$universityName))
            return false;
        final Object this$city = this.getCity();
        final Object other$city = other.getCity();
        if (this$city == null ? other$city != null : !this$city.equals(other$city)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof University;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $universityId = this.getUniversityId();
        result = result * PRIME + ($universityId == null ? 43 : $universityId.hashCode());
        final Object $universityName = this.getUniversityName();
        result = result * PRIME + ($universityName == null ? 43 : $universityName.hashCode());
        final Object $city = this.getCity();
        result = result * PRIME + ($city == null ? 43 : $city.hashCode());
        return result;
    }
}
